<div id="message">
    <h4><?php echo $message['text'] ?></h4>
    <p><a href="<?php echo $message['forward'] ?>"><?php echo $message['forward_text'] ?></a></p>
</div>
<script type="text/javascript">
    setTimeout(function() {
        window.location = "<?php echo $message['forward'] ?>";
    }, <?php echo $message['seconds'] ?> * 1000);
</script>